import "../css/index.css"

// 使用 font-awesome
import "font-awesome/css/font-awesome.css"

// 导入 animate.css
import "animate.css"

// 导入 bootstrap 的 css 文件
import "bootstrap/dist/css/bootstrap.css"
// 导入 bootstrap 的 js 文件
import "bootstrap"

import jQuery from "jquery"
window.$ = window.jQuery = jQuery
// console.log($)
// console.log(jQuery)

import wbb from "../images/wbb.jpeg"

$.ajax({
    url: "https://3g.163.com/touch/reconstruct/article/list/BA10TA81wangning/1-20.html",
    dataType: "jsonp",
    jsonpCallback: "artiList",
    success(res) {
        res.BA10TA81wangning.forEach((item) => {
            console.log(item)
            $(`
                <div class="col-12 col-sm-6 col-md-4 col-lg-3">
                    <div class="card">
                        <img src="${item.imgsrc}" class="card-img-top my-poster" alt="...">
                        <div class="card-body">
                            <h5 class="card-title">${item.title}</h5>
                            <p class="card-text">${item.digest}</p>
                            <a href="#" class="btn btn-primary">Go somewhere</a>
                        </div>
                    </div>
                </div>
            `).appendTo(".new-list")
        })
    }
})

/*
for (let i = 0; i < 20; i++) {

}*/

